export const getPageQuery = (body: Recordable<any>) => {
  const page = parseInt(body.currentPage) || 1
  const size = parseInt(body.pageSize) || 20
  const offset = (page - 1) * size
  return { size: String(size), offset: String(offset) }
}
